﻿using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.ScheduledTask.Listeners
{
    public class SchedulerServiceListener : ISchedulerListener
    {
        public async Task JobAdded(IJobDetail jobDetail, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("JobAdded");
        }

        public async Task JobDeleted(JobKey jobKey, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("JobDeleted");
        }

        public async Task JobInterrupted(JobKey jobKey, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("JobInterrupted");
        }

        public async Task JobPaused(JobKey jobKey, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("JobPaused");
        }

        public async Task JobResumed(JobKey jobKey, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("JobResumed");
        }

        public async Task JobScheduled(ITrigger trigger, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("JobScheduled");
        }

        public async Task JobsPaused(string jobGroup, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("JobsPaused");
        }

        public async Task JobsResumed(string jobGroup, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("JobsResumed");
        }

        public async Task JobUnscheduled(TriggerKey triggerKey, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("JobUnscheduled");
        }

        public async Task SchedulerError(string msg, SchedulerException cause, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("SchedulerError");
        }

        public async Task SchedulerInStandbyMode(CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("SchedulerInStandbyMode");
        }

        public async Task SchedulerShutdown(CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("SchedulerShutdown");
        }

        public async Task SchedulerShuttingdown(CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("SchedulerShuttingdown");
        }

        public async Task SchedulerStarted(CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("SchedulerStarted");
        }

        public async Task SchedulerStarting(CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("SchedulerStarting");
        }

        public async Task SchedulingDataCleared(CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("SchedulingDataCleared");
        }

        public async Task TriggerFinalized(ITrigger trigger, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("TriggerFinalized");
        }

        public async Task TriggerPaused(TriggerKey triggerKey, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("TriggerPaused");
        }

        public async Task TriggerResumed(TriggerKey triggerKey, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("TriggerResumed");
        }

        public async Task TriggersPaused(string? triggerGroup, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("TriggersPaused");
        }

        public async Task TriggersResumed(string? triggerGroup, CancellationToken cancellationToken = default)
        {
            await Console.Error.WriteLineAsync("TriggersResumed");
        }
    }
}
